import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

//整体导入NintUI组件
import Mint from 'mint-ui';
Vue.use(Mint);
import 'mint-ui/lib/style.css'

//导入mui的样式 
import './lib/mui/css/mui.css'

//导入缩略图插件
import VuePreview from 'vue-preview'
Vue.use(VuePreview)

//导入vue-resource模块
import VueResource from 'vue-resource'
Vue.use(VueResource)

// 导入格式化时间的插件
import moment from 'moment'
// 定义全局的过滤器
Vue.filter('time', function (dataStr, pattern = "YYYY-MM-DD HH:mm:ss") {
	return moment(dataStr).format(pattern);
})


//设置请求根路径
Vue.http.options.root = 'http://www.liulongbin.top:3005';
//全局定义post请求
Vue.http.options.emulateJSON = true

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
